package com.xkdx.caipiao.presistence.bank;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class UpdateBankAction extends AbsAction {

	String uid, token, bankid, banktype, bankcode,id;

	public UpdateBankAction(String uid, String token, 
			String bankId,String banktype, String bankcode) {
		this.uid = uid;
		this.token = token;
		this.banktype = banktype;
		this.bankcode = bankcode;
		this.id = bankId;
	}

	@Override
	public void constructRequest() {

		HashMap<String, String> map = new HashMap<String, String>();
		map.put("uid", uid);
		map.put("logintoken", token);
		map.put("type", banktype);
		map.put("cardid", bankcode);
		map.put("id", id);
		String json = constructJson(map);
		Parameter parameter = new Parameter("Bank", "Edit", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);
	}
}
